﻿<style>
</style>
<div ng-controller="PayResultCtrl" style="height:100%;display: flex;flex-direction: column;">
    <div class="page msg_success js_show" ng-show="eventDetail.PayStatus == 'AlreadyPaid' || eventDetail.PayStatus == 'NoNeedToPay'">
        <div class="weui-msg">
            <div class="weui-msg__icon-area"><i class="weui-icon-success weui-icon_msg"></i></div>
            <div class="weui-msg__text-area">
                <h2 class="weui-msg__title">报名成功</h2>
            </div>
            <div class="weui-msg__opr-area">
                <p class="weui-btn-area">
                    <a  class="weui-btn weui-btn_primary" ui-sref="wx.activityList({type:'all'})">返回活动页面</a>
                </p>
            </div>
        </div>
    </div>
    <div class="weui-form-preview" ng-show="eventDetail.PayStatus == 'Unpaid'" style="flex:1;overflow-y: auto;padding-bottom: 10px">
        <div class="weui-form-preview__hd">
            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">付款金额</label>
                <em class="weui-form-preview__value" ng-bind="eventDetail.TotalFee/100 + '元'">¥2400.00</em>
            </div>
        </div>
        <div class="weui-form-preview__bd">
            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">活动名称</label>
                <span class="weui-form-preview__value" ng-bind="eventDetail.EventTitle">4543</span>
            </div>
            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">门店</label>
                <span class="weui-form-preview__value" ng-bind="eventDetail.ShopName">4543</span>
            </div>
            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">场次</label>
                <span class="weui-form-preview__value" ng-bind="eventDetail.PlayTimespan">adefrsd</span>
            </div>
            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">姓名</label>
                <span class="weui-form-preview__value" ng-bind="eventDetail.Contact_Name">4543</span>
            </div>
            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">手机号码</label>
                <span class="weui-form-preview__value" ng-bind="eventDetail.Contact_Phone">4543</span>
            </div>
            <div class="weui-form-preview__item" ng-show="eventDetail.Contact_Number!=null">
                <label class="weui-form-preview__label">人数</label>
                <span class="weui-form-preview__value" ng-bind="eventDetail.Contact_Number">4543</span>
            </div>
        </div>
        <div class="weui-cells__title">选择会员身份</div>
        <div class="weui-cells">
            <div class="weui-cell weui-cell_select">
                <div class="weui-cell__bd">
                    <select class="weui-select" ng-model="card.currCard"  ng-change="billData.card.changeCard_change()" ng-options="item.Name + '-' + item.CardCode for item in card.list">
                    </select>
                </div>
            </div>
        </div>
        <div class="weui-cells__title">支付方式</div>
        <div class="weui-cells weui-cells_radio" >
            <label class="weui-cell weui-check__label" ng-repeat="item in payType.list">
                <div class="weui-cell__bd">
                    <p ng-bind="item.name"></p>
                    <p class="weui-cells__tips" style="padding-left: 0px;"><span ng-show="item.rest != undefined">{{'会员卡余额:￥'+ item.rest}}</span><span ng-show="item.points != undefined">&nbsp;积分余额:</span><span >{{item.points}}</span></p>
                </div>
                <div class="weui-cell__ft">
                    <input type="radio" class="weui-check" value="{{item.type}}" ng-model="payType.currPayType" ng-change="payType.changePayType_change()"/>
                    <span class="weui-icon-checked"></span>
                </div>
            </label>
        </div>
        <!--<div class="weui-form-preview__ft"  >
            <a class="weui-form-preview__btn weui-form-preview__btn_primary" ui-sref="wx.activityList({type:'my'})">返回我的报名列表</a>
        </div>-->
    </div>
    <div class="" ng-show="eventDetail.PayStatus == 'Unpaid'" style="padding-top: 0">
        <a class="weui-btn weui-btn_primary no-radius  m-t-none" ng-click="payBill_click()">立即支付</a>
        <a class="weui-btn weui-btn_default no-radius m-t-xs " ui-sref="wx.activityList({type:'my'})">返回我的报名列表</a>
    </div>
    <div class="wrapper-xl" ng-show="eventDetail.PayStatus == undefined">
            <h1 class="page__title">未找到该活动</h1>
            <p class="page__desc"  ui-sref="wx.activityList({type:'all'})">点击返回活动页面...</p>
    </div>
    <div class="page msg_warn js_show"  ng-show="status == 0">
        <div class="weui-msg">
            <div class="weui-msg__icon-area"><i class="weui-icon-warn weui-icon_msg"></i></div>
            <div class="weui-msg__text-area">
                <h2 class="weui-msg__title">报名失败</h2>
            </div>
            <div class="weui-msg__opr-area">
                <p class="weui-btn-area">
                    <a  class="weui-btn weui-btn_default"  ui-sref="wx.activityList({type:'all'})">返回活动页面</a>
                </p>
            </div>
        </div>
    </div>
</div>